package br.com.moxeon.model.financialitems;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import br.com.moxeon.model.MoxeonControlledPersistentEntity;
import br.com.moxeon.model.enums.CheckOperation;


@SuppressWarnings("serial")
@Entity
@Table(name="check_actions")
public class CheckActions extends MoxeonControlledPersistentEntity{
	//TODO private Usuario usuario
	@Column(nullable=false)
	private Date date;
	private String observation;
	@Column(name="additional_information")
	private String additionalInformation;
	@Enumerated
	@Column(nullable=false, name="check_operation")
	private CheckOperation checkOperation;
	@ManyToOne(targetEntity=Paragraph.class,fetch=FetchType.LAZY,optional=true)
	@JoinColumn(name="alinea_id")
	private Paragraph alinea;
	@ManyToOne(targetEntity=Check.class,fetch=FetchType.LAZY,optional=false)
	private Check check;
	public Date getDate() {
		return date;
	}
	public String getObservation() {
		return observation;
	}
	public String getAdditionalInformation() {
		return additionalInformation;
	}
	public CheckOperation getCheckOperation() {
		return checkOperation;
	}
	public Paragraph getAlinea() {
		return alinea;
	}
	public Check getCheck() {
		return check;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public void setObservation(String observation) {
		this.observation = observation;
	}
	public void setAdditionalInformation(String additionalInformation) {
		this.additionalInformation = additionalInformation;
	}
	public void setCheckOperation(CheckOperation checkOperation) {
		this.checkOperation = checkOperation;
	}
	public void setAlinea(Paragraph alinea) {
		this.alinea = alinea;
	}
	public void setCheck(Check check) {
		this.check = check;
	}
	

	
	
}